{extend name="Public/base" /}
{block name="body"}
<div class="layui-layout-admin">
    <div class="layui-tab sc_side_tab" lay-filter="nav">
        <ul class="layui-tab-title">
            <li class="layui-this">
                <div class="sc_side_manage" style="background-image:url('__Admin__/images/male.png');"></div>
                {$adminInfo.username|default="参数错误"}
            </li>
            {volist name="node" id="data"}
            <li lay-id="{$data.id}"><span><i class="{$data.icon}"></i></span>{$data.title}</li>
            {/volist}
            <dl class="layui-nav layui-nav-tree sc_side_more">
                <dd class="layui-nav-item layui-nav-itemed">
                    <a></a>
                    <dl class="layui-nav-child">
                        <dd><a data-open="{:U('admin/pass')}" data-title="修改密码">修改密码</a></dd>
                        <dd><a data-open="{:U('admin/Info')}" data-title="修改资料">修改资料</a></dd>
                        <dd><a data-confirm="{:U('admin/cache_clear')}" data-title="清除缓存">清除缓存</a></dd>
                        <dd><a data-confirm="{:U('login/logout')}">退出登录</a></dd>
                    </dl>
                </dd>
            </dl>
        </ul>
        <div class="layui-tab-content">
            <div class="sc_title"></div>
            <div class="layui-tab-item layui-show">
                <menu class="sc_side_main">
                    <ul class="sc_side_menu">
                        <li class="layui-nav-item"><a data-menu-node="m-0-1" data-url="{:U('index/main')}">系统首页</a></li>
                    </ul>
                </menu>
            </div>
            {volist name="node" id="data" key="l"}
            <div class="layui-tab-item">
                <menu class="sc_side_main">
                    {eq name="l" value="1"}
                        <a class="sc_side_title tree_reload">刷新导航</a>
                        <ul class="sc_side_menu">
                            {volist name="category" id="sub"}
                            <li class="layui-nav-item"><a data-menu-node="m-{$data.id}-{$sub.id}" data-url="{:U('page/index')}">{$sub.delimiter}{$sub['pid']?'├':''} {$sub.title}</a></li>
                            {/volist}
                        </ul>
                    {else /}
                        <ul class="sc_side_menu">
                            {volist name="data.children" id="sub"}
                                {empty name='sub.children'}
                                    <li class="layui-nav-item"><a data-menu-node="m-{$data.id}-{$sub.id}" data-url="{:U($sub['path'])}">{$sub.title}</a></li>
                                {else /}
                                    <li class="layui-nav-item"><span>{$sub.title}</span></li>
                                    {volist name="sub.children" id="menu"}
                                        <li class="layui-nav-item"><a data-menu-node="m-{$data.id}-{$menu.id}" data-url="{:U($menu['path'])}"><i>├</i> {$menu.title}</a></li>
                                    {/volist}
                                {/empty}
                            {/volist}
                        </ul>
                    {/eq}
                </menu>
            </div>
            {/volist}
        </div>
    </div>
    <div class="layui-body" id="sc_body"></div>
</div>
{/block}
